package com.zhledu.algorithm;

import java.io.*;

public class GaneratTestData {
    public static void main(String[] args) throws Exception {
        for (int i = 1; i < 31; i++) {
            BufferedWriter writer = new BufferedWriter(new FileWriter(new File("/Users/zhli/testdata/apple" + i + ".in")));
            int n=(int) (Math.random() * 10)+5;
            writer.write(n+"");
            writer.newLine();
            for(int j=0;j<n;j++) {
                writer.write(((int) (Math.random() * 100)+1) + " ");
            }
            writer.close();
        }
    }
}
